package org.patterns.creational.abstractfactory;


public class Client {
    public static void main(String[] args) {
        // 使用抽象层定义
        SkinFactory factory = (SkinFactory) XMLUtil.getBean();
        Button btn = factory.createButton();
        TextField txt = factory.createTextField();
        ComboBox cob = factory.createComboBox();
        btn.display();
        txt.display();
        cob.display();
    }
}